<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup lang="ts">
import cn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'
import { useSettingStore } from './store/modules/setting'
let lang: ObjIndex = {
  en,
  cn,
}
const { layoutConfig } = useSettingStore()
let locale = lang[layoutConfig.Language]
</script>

<style lang="scss" scoped></style>
